package com.test.ws.s1.service.imp;

import com.test.ws.s1.bean.Imgs;
import com.test.ws.s1.service.ImagsService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
@Service
public class ImagsServiceImp implements ImagsService {
    @Autowired
    private com.test.ws.s1.mapper.ImagsDao imagsDao;

    @Override
    public ArrayList<Imgs> selectImgs(String id,String name) {
        return imagsDao.selectImgs(id,name);
    }

    @Override
    public int insertImgs(String id,Imgs imgs) {
        return imagsDao.insertImgs(id,imgs);
    }

    @Override
    public int updateImgs(@Param("routeId") String id, @Param("img") Imgs imgs) {
        return imagsDao.updateImgs(id,imgs);
    }

    @Override
    public Imgs selectImgsById(@Param("routeId") String id) {
        return imagsDao.selectImgsById(id);
    }

    @Override
    public int deleteImgs(@Param("routeId") String id) {
        return imagsDao.deleteImgs(id);
    }

    @Override
    public ArrayList<Imgs> selectImgsLunBo() {
        return imagsDao.selectImgsLunBo();
    }

    @Override
    public ArrayList<Imgs> selectImgsCha(int id) {
        return imagsDao.selectImgsCha(id);
    }
}
